import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "@/assets/css/config.css"
// npm install element-plus --save
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import {createPinia} from "pinia";
// npm i js-cookie 安装了这个管理cookie
// npm install mitt  添加了事件总监event Bug的插件mitt
const app = createApp(App)
// app.config.warnHandler = (msg, vm, trace) => {
    // 这里可以处理警告信息，例如记录到日志系统或完全忽略
    // 例如，完全忽略警告信息
    // console.log('Warning ignored:', msg, vm, trace);
// };

app.use(store)
    .use(router)
    .use(createPinia())
    .use(ElementPlus, {
        locale: zhCn,
    })
    .mount('#app')
